package com.pi.config;



import com.pi.framework.core.controller.BaseCrudCustomHandler;
import com.pi.pro.xcmg.am.was.fac.handler.KitAsnCustomHandler;
import com.pi.pro.xcmg.am.was.web.cust.controller.KitAsnController;
import com.pi.wms.entity.TwaDocAsnHeader;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 *
 */
@Slf4j
@Configuration
public class XcmgAmWasWebConfig {

    @Bean
    public BaseCrudCustomHandler kitAsnLineHandler(KitAsnController kitAsnController){
        BaseCrudCustomHandler<TwaDocAsnHeader,Long> customHandler=new KitAsnCustomHandler();
        if (kitAsnController!=null){
            kitAsnController.customHandler(customHandler);
        }
        return customHandler;
    }

}
